{% extends "Buyer/base.html" %}

{% load static %}

{% block content %}

    <div class="xq">
        <div class="location"><a href="">我的订单</a> ><a href="">查看订单</a></div>
        <div class="shouhuo">
            <div class="shouhuo_top">收货信息</div>
            <div class="shouhuo_bottom">
                <!-- 须传入收货人姓名 -->
                <p>收货人：{{ address_obj.receiver }}</p>
                <!-- 须传入收货人电话 -->
                <p>收货人电话：{{ address_obj.phone }}</p>
                <!-- 须传入收货人地址 -->
                <p>收货人地址：{{ address_obj.address }}</p>
                <p>支付方式：支付宝</p>
                <!-- 需传入当前时间 -->
                <p>发货时间：{{ now_time }}</p>
            </div>
        </div>
        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table1">
            <tr style="height: 50px">
                <td width="20%" align="center">商品</td>
                <td width="20%" align="center">名称</td>
                <td width="20%" align="center">单价</td>
                <td width="20%" align="center">数量</td>
                <td width="20%" align="center">实付金额</td>
            </tr>
        </table>

        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table3" style="border-top:none">
            {% for buycar_dict in new_buycar_list %}

                <tr style="height: 50px;border-top:none">
                    <td width="20%" align="center">
                        <a href="" target="_blank">
                            {# 图片#}
                            <!-- 须传入商品缩略图url -->
                            <img src="{% static buycar_dict.buycar_obj.goods_picture %}">
                        </a>
                    </td>
                    <td width="20%" align="center">
                        <!-- 须传入商品名称 -->
                        <a href="" target="_blank">{{ buycar_dict.buycar_obj.goods_name }}</a>
                    </td>
                    <!-- 须传入商品单价 -->
                    <td width="20%" align="center"><span class="price123">{{ buycar_dict.buycar_obj.goods_price }}￥</span></td>
                    <!-- 须传入商品数量 -->
                    <td width="20%" align="center">{{ buycar_dict.buycar_obj.goods_num }}</td>
                    <!-- 须传入商品小计 -->
                    <td width="20%" align="center"><span class="price123">{{ buycar_dict.goods_xiaoji }}</span></td>
                </tr>
            {% endfor %}
        </table>
        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table2">
            <tr style="height: 50px" class="table2">
                <!-- 须传入订单日期 -->
                <td width="15%">日期:{{ order_obj.order_time }}</td>
                <!-- 须传入订单号 -->
                <td width="15%">订单号:{{ order_obj.order_num }}</td>
                <td width="70%"></td>
            </tr>
        </table>

        <p style=" text-align: right; line-height: 50px; font-family:'微软雅黑'; font-size: 20px; ">
            <!-- 须传商品总价 -->
            商品总计：￥{{ goods_total_money }}元
            <!-- 完善a标签的href属性
{#                    参考:href="/Buyer/alipay_method/?order_num={{ order.order.num }}&total={{ order.total }}"   #}
             -->
            <a href="/Buyer/alipay_method/?order_id={{order_obj.id}}&order_num={{ order_obj.order_num }}&total={{ goods_total_money }}">
                <button class="btn" style="margin-left: 40px;" id="yes_but">确认下单</button>
            </a>
        </p>
    </div>


{% endblock %}